Re: Runaway Apache Process

Re: Runaway Apache Process

am 27.01.2010 03:05:37 von Dan Bunyard

--001636c59539d78b03047e1bd7db
Content-Type: text/plain; charset=UTF-8

I can't imagine that RAM is the problem, nor the CPU. It's a dual core
machine with 5GB of RAM that gets MAYBE a few hundred unique hits a month
between ALL the web sites on it. It did this once before I even had most of
the web sites on it, it only had one or two on it the first time it happened
and was getting maybe a dozen hits a month.
--
Dan

http://www.moonlightrpg.com
http://www.linkedin.com/in/danbunyard
http://www.danodemano.com
http://www.dansrandomness.com
http://www.danandshelley.com

This is not a problem that requires infinite wisdom, Benj. This is a problem
that requires enough neural organization to qualify as a vertebrate,
apparently a stretch for some folks these days.
~Cecil Adams.


On Tue, Jan 26, 2010 at 20:42, Reese wrote:

> On 26-Jan-10 20:28, Dan Bunyard wrote:
>
>> This has happened twice now and it's a little bit concerning to me. I have
>> a
>> Fedora 12 server with 5GB of RAM that I use to host a few small web sites
>> of
>> mine. As I mentioned, this happened once before. I tried to load one of my
>> web sites today and it took FOREVER (as in the 10s of minutes) to load. I
>> SSHed into the box and found the load average around 100 (dual core
>> machine). Since this was the second time it had happened, I knew that it
>> was
>> Apache causing it. So I restarted the Apache service and everything
>> returned
>> to normal. A look in the error_log showed this error:
>>
>> server reached MaxClients setting, consider raising the MaxClients setting
>>
>> I suspect that this is the reason that Apache was eating up all my system
>> resources but I don't have any idea how to fix it.
>>
>> I do use PHP and MySQL fairly heavily. All the sites on the server use PHP
>> in some form and most of the use MySQL. Could this be part of the problem?
>> I
>> attached a copy of my httpd.conf file to this message if that will help
>> (It's also inserted into this email at the very bottom).
>>
>> Any help would be appreciated!!!
>>
>
> Off-the-cuff guesses:
>
> - Install more RAM
> - Install more CPU
> - Install more CPU and more RAM
> - limit MaxClients to 75 or 50
>
> If you are getting that much traffic, grow the server to accommodate
> it or choke it so that you can run FTP in the manner you like.
>
> Reese
>
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--001636c59539d78b03047e1bd7db
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I can't imagine that RAM is the problem, nor the CPU.  It's a =
dual core machine with 5GB of RAM that gets MAYBE a few hundred unique hits=
a month between ALL the web sites on it.  It did this once before I e=
ven had most of the web sites on it, it only had one or two on it the first=
time it happened and was getting maybe a dozen hits a month.
ll">

--
Dan

http://www.moonlig=
htrpg.com

http://w=
ww.linkedin.com/in/danbunyard

=
http://www.danodemano.com



=

http://www.danandshelley.com a>

This is not a problem that requires infinite wisdom, Benj. This i=
s a problem that requires enough neural organization to qualify as a verteb=
rate, apparently a stretch for some folks these days.


~Cecil Adams.



On Tue, Jan 26, 2010 at 20:42, Reese an dir=3D"ltr"><howell.r@in=
kworkswell.com
> wrote:
tyle=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204=
); padding-left: 1ex;">

On 26-Jan-10 20:28, Dan Bunyard wrote:

r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
This has happened twice now and it's a little bit concerning to me. I h=
ave a

Fedora 12 server with 5GB of RAM that I use to host a few small web sites o=
f

mine. As I mentioned, this happened once before. I tried to load one of my<=
br>
web sites today and it took FOREVER (as in the 10s of minutes) to load. I r>
SSHed into the box and found the load average around 100 (dual core

machine). Since this was the second time it had happened, I knew that it wa=
s

Apache causing it. So I restarted the Apache service and everything returne=
d

to normal. A look in the error_log showed this error:



server reached MaxClients setting, consider raising the MaxClients setting<=
br>


I suspect that this is the reason that Apache was eating up all my system r>
resources but I don't have any idea how to fix it.



I do use PHP and MySQL fairly heavily. All the sites on the server use PHP<=
br>
in some form and most of the use MySQL. Could this be part of the problem? =
I

attached a copy of my httpd.conf file to this message if that will help

(It's also inserted into this email at the very bottom).



Any help would be appreciated!!!




Off-the-cuff guesses:



- Install more RAM

- Install more CPU

- Install more CPU and more RAM

- limit MaxClients to 75 or 50



If you are getting that much traffic, grow the server to accommodate

it or choke it so that you can run FTP in the manner you like.



Reese







------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g" target=3D"_blank">users-unsubscribe@httpd.apache.org

 "   from the digest: cribe@httpd.apache.org" target=3D"_blank">users-digest-unsubscribe@httpd.ap=
ache.org


For additional commands, e-mail: org" target=3D"_blank">users-help@httpd.apache.org






--001636c59539d78b03047e1bd7db--

Re: Runaway Apache Process

am 27.01.2010 03:40:18 von Reese

On 26-Jan-10 21:05, Dan Bunyard wrote:
> I can't imagine that RAM is the problem, nor the CPU. It's a dual core
> machine with 5GB of RAM that gets MAYBE a few hundred unique hits a month

How many non-unique hits?

We had a problem once, ended up losing a host over it. It turned out
to be a malicious or poorly-programmed bot that kept hammering
relentlessly - services from that host were sweet but they couldn't
be bothered and dumped our account rather than do some due diligence
and protect themselves.

What shows up in your logs?

> between ALL the web sites on it. It did this once before I even had most of
> the web sites on it, it only had one or two on it the first time it happened
> and was getting maybe a dozen hits a month.
> --
> Dan
>
> http://www.moonlightrpg.com
> http://www.linkedin.com/in/danbunyard
> http://www.danodemano.com
> http://www.dansrandomness.com
> http://www.danandshelley.com


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org